﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;

namespace ConsoleApp2
{
    class NewCompaper:IComparer
    {
        public int Compare(object x, object y)/*输出结果从大到小调换first和second位置则输出结果反之*/
        {
            string first = x.ToString();
            string second = y.ToString();
            return first.CompareTo(second);
        }
    }
}
